package routers

import (
	"github.com/gin-gonic/gin"
	v1 "teacher-helper/api/v1"
	"teacher-helper/middleware"
)

func InitJobRouter(Router *gin.RouterGroup)  {
	JobRouter := Router.Group("jobs").Use(middleware.JWTAuth())
	{
		JobRouter.GET("/getJobList", v1.GetJobList)
		JobRouter.POST("/addJob", v1.AddOneJob)
		JobRouter.PUT("/updateJob", v1.UpdateJob)
		JobRouter.DELETE("/deleteJob", v1.DeleteJob)
	}
}
